#include <stdio.h>
int main()
{int n;
int m=1;
int sum=1;
scanf("%d",&n);
while(m<=n)
{sum*=m;
m++;

}printf("%d",sum);

}
